/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

package aptech.semester.code.item;

import aptech.semester.code.common.Role;
import aptech.semester.code.entity.BankEntity;


/**
 *
 * @author vi
 */
public class RoleComboItem {
    private int value;
    public RoleComboItem(int value) {
        this.value = value;
    }
    @Override
    public String toString() {
        if (value == Role.ROLE_ADMIN) {
            return Role.ROLE_NAME_ADMIN;
        } else if (value == Role.ROLE_HR) {
            return Role.ROLE_NAME_HR;
        } else if (value == Role.ROLE_MANAGER) {
            return Role.ROLE_NAME_MANAGER;
        } else if (value == Role.ROLE_STAFF) {
            return Role.ROLE_NAME_STAFF;
        } else {
            return "";
        }
    }
    public int getValue() {
        return value;
    }
}
